package com.yyb.mapper;

import com.yyb.domain.SysLoginInfo;
import com.yyb.dto.SysLoginInfoQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author LJH
* @description 针对表【sys_login_info(系统访问记录)】的数据库操作Mapper
* @createDate 2024-03-06 13:13:08
* @Entity com.yyb.domain.SysLoginInfo
*/
public interface SysLoginInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysLoginInfo record);

    int insertSelective(SysLoginInfo record);

    SysLoginInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysLoginInfo record);

    int updateByPrimaryKey(SysLoginInfo record);

    /**
     * 根据条件查询登录日志
     * @param params
     * @return
     */
    List<SysLoginInfo> queryAllLoginInfo(SysLoginInfoQueryDTO params);

    /**
     * 批量删除登陆日志
     * @param loginInfoIds
     * @return
     */
    int deleteByPrimaryKeys(@Param("loginInfoIds") Long[] loginInfoIds);

    /**
     * 清空登陆日志
     * @return
     */
    int deleteAllLoginInfo();

}
